﻿
@Html.DevExpress().GridView(
settings =>
{
    
    settings.Name = "gridView";
    settings.InitDefaultPagerGridViewSettings();
    settings.EnableAlternatingRowColor();
    settings.EnableRowIndexColumn();
    
    settings.CallbackRouteValues = new { Controller = "File", Action = "ViewList" };
    
    settings.KeyFieldName = "table_name,table_id,opercode";
    settings.Columns.Add("user_name", "回复人");
    settings.Columns.Add("response_date", "回复日期", MVCxGridViewColumnType.DateEdit).PropertiesEdit.DisplayFormatString = "yyyy-MM-dd HH:mm";
    
    settings.Columns.Add("response_note", "回复");
}).BindEF((s, e) => {
    e.KeyExpression = "user_name,response_date";
    e.QueryableSource = this.GetFileResponseList();
        e.DefaultSorting = "response_date desc";
    }).GetHtml()
